
package com.e885.sample.view.bean;

import java.util.HashSet;
import java.util.Set;

/**
 * District bean.
 * 
 * @author Eric.Kao gau168.gau@msa.hinet.net
 * @version 1.0
 * @company E885 Group
 * @copyright Copyright (c) 2001-2008
 */

public class DistrictBean implements java.io.Serializable
{
	private static final long serialVersionUID = 4486881211745152437L;

	private String id;

	private CountyBean countyBean;

	private String name;

	@SuppressWarnings( "unchecked" )
	private Set< PersonInfoBean > personInfoBeans = new HashSet( 0 );

	/**
	 * default constructor
	 */
	public DistrictBean()
	{
	}

	/**
	 * 取得行政區或鄉鎮市名的 id
	 * 
	 * @return
	 */
	public String fetchId()
	{
		if( id == null )
			return "";

		return id;
	}

	/**
	 * 取得行政區或鄉鎮市名
	 * 
	 * @return
	 */
	public String fetchName()
	{
		if( name == null )
			return "";

		return name;
	}

	public CountyBean getCountyBean()
	{
		return this.countyBean;
	}

	public String getId()
	{
		return this.id;
	}

	public String getName()
	{
		return this.name;
	}

	public Set< PersonInfoBean > getPersonInfoBeans()
	{
		return this.personInfoBeans;
	}

	public void setCountyBean( CountyBean countyBean )
	{
		this.countyBean = countyBean;
	}

	public void setId( String id )
	{
		this.id = id;
	}

	public void setName( String name )
	{
		this.name = name;
	}

	public void setPersonInfoBeans( Set< PersonInfoBean > personInfoBeans )
	{
		this.personInfoBeans = personInfoBeans;
	}

}